package com.nirvana.data;

/**
 * 字段对象：用于保存单个字段信息
 * 
 * @author yong.xu
 * 
 */
public class DbFieldInfo
{
    private boolean isAutoIncrement = false;
    private boolean isPrimaryKey = false;

    /**
     * 字段名称
     */
    private String columnName;

    /**
     * 字段Java类型
     */
    private String javaType;

    /**
     * 字段数据库类型
     */
    private String sqlType;

    /**
     * 字段值长度
     */
    private int len;

    /**
     * 字段注释
     */
    private String comment;

    /**
     * 标志是否加更改说明
     */
    private boolean flag = false;

    public String getColumnName()
    {
        return columnName;
    }

    public void setColumnName(String columnName)
    {
        this.columnName = columnName;
    }

    public String getJavaType()
    {
        return javaType;
    }

    public void setJavaType(String javaType)
    {
        this.javaType = javaType;
    }

    public String getSqlType()
    {
        return sqlType;
    }

    public void setSqlType(String sqlType)
    {
        this.sqlType = sqlType;
    }

    public int getLen()
    {
        return len;
    }

    public void setLen(int len)
    {
        this.len = len;
    }

    public String getComment()
    {
        return comment;
    }

    public void setComment(String comment)
    {
        this.comment = comment;
    }

    public boolean isFlag()
    {
        return flag;
    }

    public void setFlag(boolean flag)
    {
        this.flag = flag;
    }

    public boolean isPrimaryKey()
    {
        return isPrimaryKey;
    }

    public void setPrimaryKey(boolean isPrimaryKey)
    {
        this.isPrimaryKey = isPrimaryKey;
    }

    public boolean isAutoIncrement()
    {
        return isAutoIncrement;
    }

    public void setAutoIncrement(boolean autoIncrement)
    {
        this.isAutoIncrement = autoIncrement;
    }

}
